const { ccclass, property } = cc._decorator;

@ccclass
export default class API extends cc.Component {

    public static baseHostname: string = "http://mp.qdmedia.cc";        //服务器根地址

    //从服务器上获取展示区域的前50副画
    public static getShowcaseImageList: string = 'http://h5files.oss-cn-hangzhou.aliyuncs.com/artGallery/test/api/getShowcaseImageList5';

    /*--------------------------个人馆接口---------------------------*/

    //获取微信用户信息和gallery_id    Post:openid   
    public static getGallery_id = "http://mp.qdmedia.cc/api/Wechat/user_login";    

    //个人美术馆入口
    public static showroomEnter = "http://mp.qdmedia.cc/api/Wechat/common_wechat_info";
    

    /**获取美术馆的标签 */
    public static showroomTag: string = "http://mp.qdmedia.cc/api/Gallery/work_tag_list";

    /**获取美术馆信息 */
    public static showroomInfo: string = "http://mp.qdmedia.cc/api/Gallery/get_gallery";

    //获取用户点赞作品
    public static likeworks : string  = "http://mp.qdmedia.cc/api/Gallery/get_wechat_like";

    //记录用户点赞作品
    public static worklike :string = "http://mp.qdmedia.cc/api/Gallery/work_like";

    //判断是否拥有美术馆
    public static checkGallery : string = "http://mp.qdmedia.cc/api/wechat/check_wechat_gallery?wechat_id="
    /*--------------------------个人馆接口---------------------------*/

  
    //获取美术馆作品列表
    public static getworks_list : string = "http://mp.qdmedia.cc/api/Gallery/works_list"

    //管理我的美术馆
    public static my_gallery : string = "http://screen.qdmedia.cc/artWeb/my-gallery.html?openid=";

    //查询可领取的美术馆
    public static gallery_list : string = "http://mp.qdmedia.cc/api/Gallery/gallery_list";

    //绑定微信领取美术馆
    public static wechat_bind_user : string = "http://mp.qdmedia.cc/api/Wechat/wechat_bind_user";

}
